package com.faceCaptor.common;

public enum ResultCode {

    SUCCESS("100","成功"),
    CREATED("101","创建成功"),
    UPLOAD_IMAGE_SUCCESS("102", "上传图片成功"),
    CREATE_FAIL("200", "创建失败"),
    UPLOAD_IMAGE_FAIL("201", "上传图片失败"),
    NO_RECORDS("301","查不到记录"),    
    QUERY_SUCCESS("302","查询成功"),
    NO_USER_RECORD("303","查不到用户"),
    NO_ACCOUNT("304","查无此帐号"),
    BAD_PARAMETER("401","参数不对")
    ;

    private String code;
    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
